package com.adcc.loadsheet.billing.service;

import com.adcc.loadsheet.billing.vo.TreeVO;
import com.adcc.loadsheet.billing.vo.contractuser.ContractUserEntityVO;
import com.adcc.loadsheet.billing.vo.permission.PermissionEntityVO;
import com.github.pagehelper.PageInfo;

import java.util.List;
import java.util.Map;

/**
 * 权限service接口
 */
public interface PermissionService {

    //查询合同用户（分页）
    PageInfo<ContractUserEntityVO> selectContractUserForPage(Map<String, Object> map);

    //查询权限
    List<PermissionEntityVO> selectPermissions(Map<String, Object> map);

    //获取关联权限Tree，并设置是否选中
    List<TreeVO> getPermissionsTreeNode(Integer contractUserId);

    //编辑权限
    String editPermissions(Integer contractUserId,String functionPermissionIds);
}
